#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef int QueueType;
typedef struct QueueNode
{
	QueueType data;
	struct QueueNode* next;
}QueueNode;

typedef struct Queue
{
	int size;
	QueueNode* head;
	QueueNode* tail;
}Queue;

void QueueInit(Queue* ps);

void QueueDestroy(Queue* ps);

void QueuePrint(Queue* ps);

void QueuePush(Queue* ps, QueueType val);

void QueuePop(Queue* ps);

bool QueueEmpty(Queue* ps);

QueueType QueueFront(Queue* ps);

QueueType QueueBack(Queue* ps);

size_t QueueSize(Queue* ps);

